﻿<UserControl
    x:Class="CC98.Metro.Controls.UserAccountPortrait"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:CC98.Metro.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    
    <UserControl.Style>
        <Style TargetType="UserControl">
            <Setter Property="Width" Value="150" />
            <Setter Property="Height" Value="80" />
        </Style>
    </UserControl.Style>
    
    <Button x:Name="btnAccount" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
            HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Click="btnAccount_Click">
        <Grid VerticalAlignment="Center" HorizontalAlignment="Stretch">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Image Grid.Column="0"/>
            <TextBlock Text="{Binding User.Name}" Style="{StaticResource ThirdheaderTextStyle}" HorizontalAlignment="Center" />
        </Grid>
    </Button>
    
</UserControl>
